package com.kanqiubao.kq.http;

import com.lzy.okgo.request.BaseRequest;

public class HeadersUtils {
    private HeadersUtils() {
    }

    private static HeadersUtils mHeadersUtils;

    public synchronized static HeadersUtils getInstance() {
        if (mHeadersUtils == null) {
            mHeadersUtils = new HeadersUtils();
        }
        return mHeadersUtils;
    }
    public void requestHeader(BaseRequest request){
//        String token = SharedPreferencesUtil.getInstance().getToken();
//        if (!StringUtil.isEmptyString(token)) {
//            request.headers("Authorization", "Token " + token);
//        }
//        request.headers("Charset", "UTF-8")
//                .headers("User-Agent", "JMJS/" + AppConfig.getVersionName() + " Android/" + android.os.Build.VERSION.RELEASE)
//                .headers("IMEI", ThisAppApplication.getJpushId());
    }
}
